package com.wirelesshomecontrol.gui.windows;

import com.vaadin.terminal.Sizeable;
import com.vaadin.ui.GridLayout;
import com.vaadin.ui.Label;
import com.vaadin.ui.ProgressIndicator;
import com.vaadin.ui.Window;

public class AboutWindow{
	
	 private static final String HTML_SNIP = "The 'Wireless Home Control System' is an application designed to both control and monitor wall switchable circuits in a user's home. Through the web application the user can wirelessly turn on and off" +
	    " devices plugged into the power outlet, via a control module installed inside the wall. <br /> <br /> <center>This is a joint effort for Senior Design. <br /> <br />" + "The University of Toledo <br /> <br />" +
	    "Design Team: <br /> Adam Brunella - CSE, EE: adam.brunella@gmail.com <br /> Brian Kostura - EE: brian.kostura@gmail.com <br />Justin Gilmore - CSE: justin.gilmore1@gmail.com <br /> Scott Tibai - EE: scott.tibai@gmail.com <br /> <br />" + "Faculty Advisors: <br />" +
	    "Dr. Jackson Carvalho: jackson.carvalho@utoledo.edu <br /> Dr. Ahmad Farhoud: afarhoud@eng.utoledo.edu <br /> Instructor: <br /> Dr. Gursel Serpen: gursel.serpen@utoledo.edu </center> ";

	Window aboutWindow = new Window();

	public AboutWindow(){
		initAboutWindow();
	}
	
	private void initAboutWindow(){
		 aboutWindow.setCaption("About: Home Monitor Control");
         aboutWindow.center();
         aboutWindow.setWidth("50%");
         aboutWindow.setHeight("75%");
         aboutWindow.addComponent(new Label(HTML_SNIP, Label.CONTENT_XHTML));
	}
	
	public Window getAbout() {	
         return aboutWindow;
	}
	public void setAboutWindow(Window aboutWindow) {
		this.aboutWindow = aboutWindow;
	}
	
}